<script type="text/javascript">
$(function() {
	var sWidth = $("#focus").width(); 
	var len = $("#focus ul li").length; 
	var index = 0;
	var picTimer;
	
	
	var btn = "<div class='btnBg'></div><div class='btn'>";
	for(var i=0; i < len; i++) {
		btn += "<span></span>";
	}
	btn += "</div><div class='preNext pre'></div><div class='preNext next'></div>";
	$("#focus").append(btn);
	$("#focus .btnBg").css("opacity",0.5);

	
	$("#focus .btn span").css("opacity",0.4).mouseover(function() {
		index = $("#focus .btn span").index(this);
		showPics(index);
	}).eq(0).trigger("mouseover");

	
	$("#focus .pre").click(function() {
		index -= 1;
		if(index == -1) {index = len - 1;}
		showPics(index);
	});

	
	$("#focus .next").click(function() {
		index += 1;
		if(index == len) {index = 0;}
		showPics(index);
	});

	
	$("#focus ul").css("width",sWidth * (len));
	
	
	$("#focus").hover(function() {
		$("#focus .preNext").show();
		clearInterval(picTimer);
	},function() {
		$("#focus .preNext").hide();
		picTimer = setInterval(function() {
			showPics(index);
			index++;
			if(index == len) {index = 0;}
		},4000); 
	}).trigger("mouseleave");
	
	function showPics(index) { 
		var nowLeft = -index*sWidth; 
		$("#focus ul").stop(true,false).animate({"left":nowLeft},3);
		//$("#focus .btn span").removeClass("on").eq(index).addClass("on"); 
		$("#focus .btn span").stop(true,false).animate({"opacity":"0.4"},3).eq(index).stop(true,false).animate({"opacity":"1"},3); 
	}
});

</script>

		
	
		<div id="focus">
			<ul>
				<li><a href="http://android-recovery.net/android-data-recovery.html"  ><img alt="android-data-recovery-banner"  src="__PUBLIC__/home/images/banner1.jpg" /></a></li>
				<li><a href="http://android-recovery.net/samsung-data-recovery.html" ><img alt="sumsang-data-recovery-banner" src="__PUBLIC__/home/images/banner2.jpg"/></a></li>
				<li><a href="http://android-recovery.net/android-photo-recovery.html" ><img alt="android-photo-recovery-banner"  src="__PUBLIC__/home/images/banner3.jpg"/></a></li>
	
			</ul>
		</div><!--focus end-->
	

 